﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2012/2/16 17:09:50
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Sector7.Restaurant.EntityType
{
    /// <summary>
    /// 菜单项实体
    /// </summary>
    [Serializable]
    [DataContract]
    public class RS_MenuItem : Entity
    {
        #region Inner members
        private string _menuItemId;
        private int _metadataId;
        private int _metadataTypeId;
        private int _unitId;
        private decimal _unitPrice;
        private string _description;

        /// <summary>
        /// 菜单项标签复合编号
        /// </summary>
        private int _labelIds;

        private RS_Metadata _metadata;
        private RS_Unit _unit;
        private List<RS_MenuItemLabel> _labels = new List<RS_MenuItemLabel>();
        #endregion

        #region Accessor
        [DataMember]
        public string MenuItemId
        {
            get { return _menuItemId; }
            set { _menuItemId = value; }
        }

        [DataMember]
        public int MetadataId
        {
            get { return _metadataId; }
            set { _metadataId = value; }
        }

        [DataMember]
        public int MetadataTypeId
        {
            get { return _metadataTypeId; }
            set { _metadataTypeId = value; }
        }

        [DataMember]
        public int UnitId
        {
            get { return _unitId; }
            set { _unitId = value; }
        }

        [DataMember]
        public decimal UnitPrice
        {
            get { return _unitPrice; }
            set { _unitPrice = value; }
        }

        [DataMember]
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        [DataMember]
        public int LabelIds
        {
            get { return _labelIds; }
            set { _labelIds = value; }
        }

        [DataMember]
        public RS_Metadata Metadata
        {
            get { return _metadata; }
            set { _metadata = value; }
        }

        [DataMember]
        public RS_Unit Unit
        {
            get { return _unit; }
            set { _unit = value; }
        }

        [DataMember]
        public List<RS_MenuItemLabel> Labels
        {
            get { return _labels; }
            set { _labels = value; }
        }
        #endregion

        #region Structure
        #endregion
    }
}
